<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>邻里社区 - 积分商城</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* 头部样式 */
        header {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            padding: 15px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 24px;
            font-weight: bold;
            display: flex;
            align-items: center;
        }
        
        .logo i {
            margin-right: 10px;
            font-size: 28px;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .points {
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 15px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* 筛选区域 */
        .filters {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }
        
        .filter-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .filter-group {
            display: flex;
            flex-direction: column;
            min-width: 200px;
        }
        
        .filter-group label {
            font-size: 14px;
            margin-bottom: 5px;
            color: #666;
        }
        
        .filter-group select, .filter-group input {
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
        }
        
        /* 商品网格 */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
            margin: 30px 0;
        }
        
        .product-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
        }
        
        .product-image {
            height: 180px;
            overflow: hidden;
            position: relative;
        }
        
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .product-card:hover .product-image img {
            transform: scale(1.05);
        }
        
        .product-tag {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #ff4757;
            color: white;
            padding: 5px 10px;
            border-radius: 3px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .product-info {
            padding: 18px;
        }
        
        .product-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #2c3e50;
        }
        
        .product-desc {
            font-size: 14px;
            color: #7f8c8d;
            margin-bottom: 15px;
            height: 40px;
            overflow: hidden;
        }
        
        .product-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .product-price {
            font-size: 18px;
            font-weight: 700;
            color: #e74c3c;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .buy-btn {
            background: #3498db;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 600;
            transition: background 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .buy-btn:hover {
            background: #2980b9;
        }
        
        /* 页脚样式 */
        footer {
            background: #2c3e50;
            color: #ecf0f1;
            padding: 30px 0;
            margin-top: 40px;
        }
        
        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 30px;
        }
        
        .footer-section {
            flex: 1;
            min-width: 200px;
        }
        
        .footer-section h3 {
            font-size: 18px;
            margin-bottom: 15px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background: #3498db;
        }
        
        .footer-section ul {
            list-style: none;
        }
        
        .footer-section ul li {
            margin-bottom: 10px;
        }
        
        .footer-section ul li a {
            color: #bdc3c7;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-section ul li a:hover {
            color: #3498db;
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            margin-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #bdc3c7;
            font-size: 14px;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 15px;
            }
            
            .filter-options {
                flex-direction: column;
            }
            
            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
            
            .footer-content {
                flex-direction: column;
            }
        }
    </style>
</head>
<body>
    <!-- 头部 -->
    <header>
        <div class="container">
            <div class="header-content">
                <div class="logo">
                    <i class="fas fa-store"></i>
                    <span>邻里社区积分商城</span>
                </div>
                <div class="user-info">
                    <div class="points">
                        <i class="fas fa-coins"></i>
                        <span>我的积分: 2,580</span>
                    </div>
                    <div class="user-actions">
                        <i class="fas fa-user-circle"></i>
                        <span>欢迎, 社区用户</span>
                    </div>
                </div>
            </div>
        </div>
    </header>

    <!-- 主要内容 -->
    <div class="container">
        <!-- 筛选区域 -->
        <div class="filters">
            <div class="filter-title">
                <i class="fas fa-filter"></i>
                <span>商品筛选</span>
            </div>
            <div class="filter-options">
                <div class="filter-group">
                    <label for="category">商品分类</label>
                    <select id="category">
                        <option value="">全部商品</option>
                        <option value="daily">日用百货</option>
                        <option value="digital">数码电器</option>
                        <option value="food">食品饮料</option>
                        <option value="book">图书文具</option>
                    </select>
                </div>
                <div class="filter-group">
                    <label for="price">积分范围</label>
                    <select id="price">
                        <option value="">全部范围</option>
                        <option value="0-500">500积分以下</option>
                        <option value="500-1000">500-1000积分</option>
                        <option value="1000-2000">1000-2000积分</option>
                        <option value="2000+">2000积分以上</option>
                    </select>
                </div>
                <div class="filter-group">
                    <label for="sort">排序方式</label>
                    <select id="sort">
                        <option value="new">最新上架</option>
                        <option value="popular">最受欢迎</option>
                        <option value="price-asc">积分从低到高</option>
                        <option value="price-desc">积分从高到低</option>
                    </select>
                </div>
            </div>
        </div>

        <!-- 商品网格 -->
        <div class="products-grid">
            <!-- 商品1 -->
            <div class="product-card">
                <div class="product-image">
                    <img src="https://images.unsplash.com/photo-1585386959984-a4155224a1ad?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="电动牙刷">
                    <div class="product-tag">热卖中</div>
                </div>
                <div class="product-info">
                    <h3 class="product-title">智能电动牙刷</h3>
                    <p class="product-desc">智能声波震动，30天超长续航，5种清洁模式</p>
                    <div class="product-footer">
                        <div class="product-price">
                            <i class="fas fa-coins"></i>
                            <span>1,200</span>
                        </div>
                        <button class="buy-btn">
                            <i class="fas fa-shopping-cart"></i>
                            <span>兑换</span>
                        </button>
                    </div>
                </div>
            </div>

            <!-- 商品2 -->
            <div class="product-card">
                <div class="product-image">
                    <img src="https://images.unsplash.com/photo-1560769684-550f4f2c60e2?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="咖啡礼盒">
                    <div class="product-tag">新品</div>
                </div>
                <div class="product-info">
                    <h3 class="product-title">精品咖啡礼盒</h3>
                    <p class="product-desc">精选咖啡豆，浓郁香气，适合咖啡爱好者</p>
                    <div class="product-footer">
                        <div class="product-price">
                            <i class="fas fa-coins"></i>
                            <span>800</span>
                        </div>
                        <button class="buy-btn">
                            <i class="fas fa-shopping-cart"></i>
                            <span>兑换</span>
                        </button>
                    </div>
                </div>
            </div>

            <!-- 商品3 -->
            <div class="product-card">
                <div class="product-image">
                    <img src="https://images.unsplash.com/photo-1546868871-7041f2a55e12?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="蓝牙音箱">
                </div>
                <div class="product-info">
                    <h3 class="product-title">便携蓝牙音箱</h3>
                    <p class="product-desc">360°环绕音效，IPX7防水，20小时播放</p>
                    <div class="product-footer">
                        <div class="product-price">
                            <i class="fas fa-coins"></i>
                            <span>1,500</span>
                        </div>
                        <button class="buy-btn">
                            <i class="fas fa-shopping-cart"></i>
                            <span>兑换</span>
                        </button>
                    </div>
                </div>
            </div>

            <!-- 商品4 -->
            <div class="product-card">
                <div class="product-image">
                    <img src="https://images.unsplash.com/photo-1535585209827-a15fcdbc4c02?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="保温杯">
                </div>
                <div class="product-info">
                    <h3 class="product-title">不锈钢保温杯</h3>
                    <p class="product-desc">24小时保温保冷，轻便设计，多种颜色可选</p>
                    <div class="product-footer">
                        <div class="product-price">
                            <i class="fas fa-coins"></i>
                            <span>600</span>
                        </div>
                        <button class="buy-btn">
                            <i class="fas fa-shopping-cart"></i>
                            <span>兑换</span>
                        </button>
                    </div>
                </div>
            </div>

            <!-- 商品5 -->
            <div class="product-card">
                <div class="product-image">
                    <img src="https://images.unsplash.com/photo-1526170375885-4d8ecf77b99f?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="摄影书籍">
                    <div class="product-tag">限量</div>
                </div>
                <div class="product-info">
                    <h3 class="product-title">摄影艺术全集</h3>
                    <p class="product-desc">专业摄影技巧，精美图片展示，提升摄影水平</p>
                    <div class="product-footer">
                        <div class="product-price">
                            <i class="fas fa-coins"></i>
                            <span>1,800</span>
                        </div>
                        <button class="buy-btn">
                            <i class="fas fa-shopping-cart"></i>
                            <span>兑换</span>
                        </button>
                    </div>
                </div>
            </div>

            <!-- 商品6 -->
            <div class="product-card">
                <div class="product-image">
                    <img src="https://images.unsplash.com/photo-1588186939549-c087e0796efd?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="瑜伽垫">
                </div>
                <div class="product-info">
                    <h3 class="product-title">专业瑜伽垫</h3>
                    <p class="product-desc">防滑加厚设计，环保材质，多种尺寸可选</p>
                    <div class="product-footer">
                        <div class="product-price">
                            <i class="fas fa-coins"></i>
                            <span>900</span>
                        </div>
                        <button class="buy-btn">
                            <i class="fas fa-shopping-cart"></i>
                            <span>兑换</span>
                        </button>
                    </div>
                </div>
            </div>

            <!-- 商品7 -->
            <div class="product-card">
                <div class="product-image">
                    <img src="https://images.unsplash.com/photo-1524805444758-089113c48a8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="智能手表">
                    <div class="product-tag">热门</div>
                </div>
                <div class="product-info">
                    <h3 class="product-title">智能健康手表</h3>
                    <p class="product-desc">心率监测，运动追踪，消息提醒，7天续航</p>
                    <div class="product-footer">
                        <div class="product-price">
                            <i class="fas fa-coins"></i>
                            <span>2,200</span>
                        </div>
                        <button class="buy-btn">
                            <i class="fas fa-shopping-cart"></i>
                            <span>兑换</span>
                        </button>
                    </div>
                </div>
            </div>

            <!-- 商品8 -->
            <div class="product-card">
                <div class="product-image">
                    <img src="https://images.unsplash.com/photo-1519558260268-cde7e03a0152?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="厨房刀具">
                </div>
                <div class="product-info">
                    <h3 class="product-title">高级厨房刀具套装</h3>
                    <p class="product-desc">德国工艺，锋利耐用，人体工学手柄</p>
                    <div class="product-footer">
                        <div class="product-price">
                            <i class="fas fa-coins"></i>
                            <span>1,700</span>
                        </div>
                        <button class="buy-btn">
                            <i class="fas fa-shopping-cart"></i>
                            <span>兑换</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="footer-section">
                    <h3>关于我们</h3>
                    <ul>
                        <li><a href="#">商城介绍</a></li>
                        <li><a href="#">积分规则</a></li>
                        <li><a href="#">合作品牌</a></li>
                        <li><a href="#">联系我们</a></li>
                    </ul>
                </div>
                <div class="footer-section">
                    <h3>兑换指南</h3>
                    <ul>
                        <li><a href="#">如何赚取积分</a></li>
                        <li><a href="#">如何兑换商品</a></li>
                        <li><a href="#">配送说明</a></li>
                        <li><a href="#">退换货政策</a></li>
                    </ul>
                </div>
                <div class="footer-section">
                    <h3>社区信息</h3>
                    <ul>
                        <li><a href="#">最新活动</a></li>
                        <li><a href="#">社区公告</a></li>
                        <li><a href="#">用户评价</a></li>
                        <li><a href="#">帮助中心</a></li>
                    </ul>
                </div>
            </div>
            <div class="copyright">
                <p>&copy; 2023 邻里社区积分商城 - 版权所有</p>
            </div>
        </div>
    </footer>

    <script>
        // 简单的交互效果
        document.addEventListener('DOMContentLoaded', function() {
            // 兑换按钮点击效果
            const buyButtons = document.querySelectorAll('.buy-btn');
            buyButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const product = this.closest('.product-card');
                    const title = product.querySelector('.product-title').textContent;
                    const price = product.querySelector('.product-price span').textContent;
                    
                    alert(`您确定要兑换 ${title} 吗？\n需要支付 ${price} 积分`);
                    // 在实际应用中，这里应该跳转到确认页面或弹出确认对话框
                });
            });
            
            // 筛选功能占位
            const filterSelects = document.querySelectorAll('select');
            filterSelects.forEach(select => {
                select.addEventListener('change', function() {
                    console.log(`筛选条件变化: ${this.id} = ${this.value}`);
                    // 在实际应用中，这里应该发送请求到服务器获取筛选后的商品
                });
            });
        });
    </script>
</body>
</html>